<template>
  <div class="my-search">
    <el-input
      :placeholder="ph"
      v-model="search"
      :style="'width:' + width + 'px'"
    >
      <el-button slot="append">搜索</el-button>
    </el-input>
  </div>
</template>

<script>
export default {
  props: ["ph", "width"],
  data() {
    return {
      search: "",
    };
  },
};
</script>

<style>
.my-search .el-range-input {
  background-color: #f2f2f2;
}

.my-search .el-input__inner {
  background-color: #f2f2f2;
  border: none;
}

.my-search:hover .el-input__inner {
  background-color: #ffffff;
}

.my-search:hover .el-range-input {
  background-color: #ffffff;
}

.my-search .el-input-group__append {
  background-color: #006eff;
  color: #ffffff;
}

.my-search input::-webkit-input-placeholder {
  color: rgb(153, 153, 153);
  font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: left;
}

.my-search input::-webkit-input-placeholder{
  font-family: PingFangSC-Regular, "PingFang SC", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: left;
}
</style>